using System.Collections;
using TMPro;
using UnityEngine;

public class ComboText : MonoBehaviour
{
	public static ComboText instance;

	public Animator at;

	public TextMeshProUGUI tm;

	public int comboAmount;

	private float lasthitTime;

	private Coroutine co;

	private void Awake()
	{
		instance = this;
	}

	public void Init()
	{
		comboAmount = 0;
		tm.text = string.Empty;
		lasthitTime = Time.time;
	}

	public void AddCombo()
	{
	}

	public void AddScore(int num)
	{
		if (TouchEvent.instance.CO_PlayerAI == null && Player.instance.hp > 0f)
		{
			GM.instance.score += num;
			CanvasList.instance.TXT_Score.text = GM.instance.score.ToString();
			GM.instance.enemiesKilledCountInThisGame++;
		}
	}

	private IEnumerator ReSetTimer()
	{
		yield return new WaitForSeconds(2f);
		comboAmount = 0;
		tm.text = string.Empty;
	}
}
